package com.zx.map.service;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.zx.map.service.model.HistoryPayCardInfoModel;

/**
 * Created by IntelliJ IDEA. User: Administrator Date: 14-3-1 Time: 上午11:06 To
 * change this template use File | Settings | File Templates.
 */
public interface HistoryPayCardInfoService {
	/**
	 * 新增或修改
	 * @param model
	 * @throws DataAccessException
	 */
	public void addOrUpdate(HistoryPayCardInfoModel model) throws DataAccessException;

	/**
	 * 根据Model查找列表
	 *
	 * @param model
	 * @return
	 * @throws org.springframework.dao.DataAccessException
	 */
	public List<HistoryPayCardInfoModel> getListByModel(HistoryPayCardInfoModel model) throws DataAccessException;


	/**
	 * 新增并返回主键
	 *
	 * @param model
	 * @return
	 * @throws org.springframework.dao.DataAccessException
	 */
	public String add(HistoryPayCardInfoModel model) throws DataAccessException;

	/**
	 * 更新并返回主键
	 *
	 * @param model
	 * @throws org.springframework.dao.DataAccessException
	 */
	public String update(HistoryPayCardInfoModel model) throws DataAccessException;

	/**
	 * 删除
	 *
	 * @param model
	 * @return
	 * @throws org.springframework.dao.DataAccessException
	 */
	public void delete(HistoryPayCardInfoModel model) throws DataAccessException;


}
